libxl: avoid double free of b_info->u.pv.bootloader
authorIan Campbell <ian.campbell@citrix.com>
Fri, 18 May 2012 12:39:59 +0000 (13:39 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 18 May 2012 12:39:59 +0000 (13:39 +0100)
commitdd7c460bad640578381132ca491ca5d427b1ebab
treea8ef85a2319b7d4f865aa7231c7eb9ce3ae6887b
parent4df8bbb936ece43c63979078b9df6589dbbc58cd
libxl: avoid double free of b_info->u.pv.bootloader

b_info is a user provided struct and therefore the content must come from
malloc and not gc such that libxl_domain_build_info_dispose can free it. This
was broken by 25340:373f24c87dee.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_bootloader.c